home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1995 August
/
CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso
/
disc2
/
nt
/
source.exe
/
POSIX
/
SH
/
STD
/
STDC
/
STRLEN.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-07-13
|
241 b
|
19 lines
#include <string.h>
/*
* strlen - length of string (not including NUL)
*/
size_t
strlen(s)
Const char *s;
{
register Const char *scan;
register size_t count;
count = 0;
scan = s;
while (*scan++ != '\0')
count++;
return(count);
}